<?php


namespace App\Models;
use Illuminate\Database\Eloquent\Model;

/**
 * Description of Balancewithdraw
 *
 * @author yonguo
 * @property int $id
 * @property int $shop_id 店铺编号
 * @property string $withdraw_no 提现流水号
 * @property int $uid 会员id
 * @property string $bank_name 提现银行名称
 * @property string $account_number 提现银行账号
 * @property string $realname 提现账户姓名
 * @property string $mobile 手机
 * @property float $cash 提现金额
 * @property int $status 当前状态 0已申请(等待处理) 1已同意 -1 已拒绝
 * @property string $memo 备注
 * @property int|null $ask_for_date 提现日期
 * @property int|null $payment_date 到账日期
 * @property int|null $modify_date 修改日期
 * @property int $transfer_type 转账方式   1 线下转账  2线上转账
 * @property string $transfer_name 转账银行名称
 * @property float $transfer_money 转账金额
 * @property int|null $transfer_status 转账状态 0未转账 1已转账 -1转账失败
 * @property string|null $transfer_remark 转账备注
 * @property string|null $transfer_result 转账结果
 * @property string|null $transfer_no 转账流水号
 * @property string|null $transfer_account_no 转账银行账号
 * @property-read \App\Models\User $user
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereAccountNumber($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereAskForDate($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereBankName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereCash($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereMemo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereMobile($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereModifyDate($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw wherePaymentDate($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereRealname($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereShopId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereTransferAccountNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereTransferMoney($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereTransferName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereTransferNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereTransferRemark($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereTransferResult($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereTransferStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereTransferType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereUid($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Balancewithdraw whereWithdrawNo($value)
 * @mixin \Eloquent
 */
class Balancewithdraw extends Model
{
    protected $table = 'balance_withdraw';
    protected $primaryKey = 'id';
    protected $guarded = ['id'];

    public $timestamps = false;
  public function user()
    {
        return $this->belongsTo(User::class, 'uid', 'uid');
    }
}
